package com.minidao.example.dao;

import java.util.List;
import java.util.Map;

import com.minidao.example.dto.UserDto;
import com.minidao.framework.annotation.MiniDao;
import com.minidao.framework.annotation.MiniSql;
import com.minidao.framework.annotation.ResultType;
import com.minidao.framework.dao.MiniBaseDaoInterface;

@MiniDao
public interface UserDao extends MiniBaseDaoInterface<UserDto> {

	@MiniSql(sql = "select * from t_user where id= ?")
	public UserDto get1(int id);

	@MiniSql(sql = "select * from t_user")
	@ResultType(value = "com.minidao.example.dto.UserDto")
	public List<UserDto> list1();

	public UserDto get2(int id);

	@ResultType(value = "com.minidao.example.dto.UserDto")
	public List<UserDto> list2();

	public List<Map<String, Object>> list3();
}
